home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
gbs2bbs.zip
/
ANS2OANS.DOC
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
29 lines
Several sysops have sent me ANSI files they were unable to convert into oANSI
using Gbs2Bbs, even in its version 1.1.
I examined the files and noticed they all had one thing in common: They were
using ^[[s (save cursor position) and ^[[u (restore cursor position). Gbs2Bbs
does not support these two commands as oANSI has no counterpart.
However, I noticed that all these files just used the two commands to
interrupt the line: Each ^[[s was followed by a carriage return and a ^[[u.
So I decided to write a version 1.2 of Gbs2Bbs that can manage these files.
These files still did not give me the right colors and created some other
problems. To fix that, I had to change a register variable into a static
variable, thus making the program noticeably slower. I also had to increase
the size of the buffer, thus making the program larger.
Further there is no guarantee that all ANSI files that use the ^[[u and ^[[s
commands will be made with the above convention. To solve the possible
problem of creating new incompatibilities while eliminating old ones, I
decided to include both, version 1.1 and 1.2, in the GBS2BBS.ARC file. To
achieve that, I left Gbs2Bbs.C/Exe intact (version 1.1) and renamed version
1.2 to Ans2Oans.C/Exe.
I suggest that you first try to convert files with Gbs2Bbs (version 1.1) and
only if that does not work, use Ans2Oans (version 1.2). Either way you may
end up with too many unnecessary control codes. The ideal solution is to read
an ANSI file into OECCDRAW, resave it as an OECL file, edit it and compile
with OECC. That will yield the most efficient files in size and transmission
time. That will also require more work from the sysop....